package com.aya.strategy;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class AppListener implements ApplicationListener<ContextRefreshedEvent> {
    Logger logger= Logger.getLogger(getClass());

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        logger.info("AppListener.onApplicationEvent:"+event.getApplicationContext());
    }
}
